<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>测试</title>
    <script src="../../app/static/js/jquery/jquery-2.1.1.min.js"></script>
    <script src="../../app/static/js/top.js" type="text/javascript"></script>
</head>
<body>

<div class="top_div">
</div>

<div class="container container-box">

    <div class="ui grid">

        <div class="three column row">

            <div class="column">
                <button class="ui inverted blue button" onclick="f()">测试</button>
            </div>
            <div class="column">
                <h1>2</h1>
            </div>
            <div class="column">
                <h1>3</h1>
            </div>

        </div>

    </div>


</div>

<div class="footer_div">
    <iframe class="footer_iframe" src="../web/footer.html"></iframe>
</div>
<script src="../../app/static/js/address.js" type="text/javascript"></script>
<script>

    function f() {
        var data =  JSON.stringify({
            "time": "201701",
            "codes": [{
                "indexCode": "0001",
                "indexName": "bbb"
            }, {
                "indexCode": "002",
                "indexName": "aaa"
            }],
            "sysCode": "b001"
        });
        var url = window.login_url.system_base_url + "/enterprise/jsons";
        $.ajax({
            type: "POST",
            url: url,
            xhrFields: {
                withCredentials: true
            },
            crossDomain: true,
            dataType: "json",
            data:JSON.stringify({
                "time": "201701",
                "codes": [{
                    "indexCode": "0001",
                    "indexName": "bbb"
                }, {
                    "indexCode": "002",
                    "indexName": "aaa"
                }],
                "sysCode": "b001"
            }),
            success: function(re){
                console.log(re);
            },
            error:function (re) {
                console.log(re);
            }
        });
    }

</script>

<!--<script src="../../app/static/lib/common/SGIS.Base.js"></script>-->
</body>
</html>